package top.lunarye.utils;

import cn.hutool.core.lang.Assert;

/**
 * @description: 用于判断的工具箱
 * @author: lunar
 * @since: 2021-07-13
 */
public class JudgeUtil {
    /**
     * 用于判断一串字符中是否含有空或null
     * @param list 输入的字符串列表
     * @throws IllegalArgumentException 存在null或者空时抛出错误
     */
    public static void judgeStringsNullAndBlank(String ...list) throws IllegalArgumentException {
        for (String item: list) {
            Assert.notBlank(item);
            Assert.notNull(item);
        }
    }
}
